package com.shark.open.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shark.model.erp.NozModel;
import com.shark.open.criteria.NozCriteria;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 油枪信息
 */
@Mapper
public interface NozMapper extends BaseMapper<NozModel> {

    @Select("select count(1) from ld_erp.noz where group_id=#{groupId} and station_id=#{stationId}")
    int selectNozCnt(@Param("groupId") Integer groupId, @Param("stationId") Integer stationId);

    List<NozModel> list(IPage<NozModel> page, @Param("criteria") NozCriteria criteria);
}
